import {
    ApiVersion
} from '../httpConfig'
import Axios from 'axios'

export const BaseDataUrl = {
    articlesTypeRes: ApiVersion + 'base_data/article_type',
    genderRes: ApiVersion + 'base_data/gender'
}
const BaseDataApi = {
    getArticlesType: function () {
        return Axios.get(BaseDataUrl.articlesTypeRes, {})
    },
    updateArticlesType: function (data) {
        return Axios.put(BaseDataUrl.articlesTypeRes, data)
    },
    addArticlesType: function (data) {
        return Axios.post(BaseDataUrl.articlesTypeRes, data)
    },
    getGender: function () {
        return Axios.get(BaseDataUrl.genderRes, {})
    }
}
export default BaseDataApi
